/*
 * Copyright (C) 2021 Baidu, Inc. All Rights Reserved.
 */
package com.chukun.rpc.core;

/**
 * <p>rpc响应枚举<p/>
 *
 * @author chukun
 * @version 1.0
 * @since 1.0-SNAPSHOT
 */
public enum TinyRpcResponseEnum {

    SUCCESS(0, "success"),
    ERROR(1,"error");

    private int code;

    private String message;

    TinyRpcResponseEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
